package book;

public class booklist {
    private book[] books=new book[10];
    private int usedsize;

    public booklist(){
        books[0] = new book("三国","luo",99,"小说");
        books[1] = new book("西游"," wu",99,"小说");
        books[2] = new book("红楼","cao",99,"小说");
        this.usedsize=3;
    }

    public int getUsedsize() {
        return usedsize;
    }

    public void setUsedsize(int usedsize) {
        this.usedsize = usedsize;
    }
    public book gettops(int top){
        return books[top];
    }
    public void setBooks(int top,book book){
        this.books[top]=book;
    }
}
